package com.probiz.estore.sales.service;

import java.util.List;

import com.probiz.estore.common.model.sales.PromoRuleElement;
import com.probiz.estore.core.service.GenericManager;

/**
 * Manager interface for PromoRuleElement, responsible for business processing, and communicate between web and persistence layer.
 *
 */
public interface PromoRuleElementManager extends GenericManager<PromoRuleElement> {
	public void deleteAllByRuleId(Integer _ruleId);
	
	/**
	 * 根据promoRuleId和购物车优惠项,获取促销的优惠
	 * @param _ruleId
	 * @return
	 */
	public List<PromoRuleElement> findAllActionByRuleId(Integer _ruleId);
	
	/**
	 * 根据promoRuleId和购物车满足condition条件,获取促销的优惠
	 * @return
	 */
	public List<PromoRuleElement> findAllByRuleId(Integer _ruleId);
	
}
